<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新增桌面图标</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
#@css?("layui")
<style>
.layui-upload-img {
	width: 100px;
	height: 100px;
}
</style>
</head>
<body>
	<a class="layui-btn layui-btn-radius layui-btn-normal"
		href="javascript:window.history.go(-1);"><i class="layui-icon">&#xe65c;</i>返回</a>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 50px;">
		<legend>桌面图标新增</legend>
	</fieldset>

	<form method="POST" action="#(ctx)/admin/module/update"
		class="layui-form">
		<input type="hidden" name="module.id" value="#(module.id)" />
		<div class="layui-form-item">
			<label class="layui-form-label">上级菜单</label>
			<div class="layui-input-block">
				<select name="module.pmid">
					<option value="0">顶级模块</option> #for(pm:moduleList)
					<option value="#(pm.id)" #if(module.pmid==pm.id)selected #end>#(pm.name)</option>
					#end
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单名称</label>
			<div class="layui-input-block">
				<input type="text" name="module.name" lay-verify="required"
					placeholder="请输入菜单名称" autocomplete="off" class="layui-input"
					value="#(module.name)">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单链接</label>
			<div class="layui-input-block">
				<input type="text" name="module.url" lay-verify="required"
					placeholder="请输入菜单链接" autocomplete="off" class="layui-input"
					value="#(module.url)">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序</label>
			<div class="layui-input-block">
				<input type="text" name="module.od" lay-verify="required"
					placeholder="请输入菜单序号" autocomplete="off" class="layui-input"
					value="#(module.od)">
			</div>
		</div>
		<!-- <div class="layui-form-item">
			<label class="layui-form-label">图标</label>
			<div class="layui-input-block">
				<div class="layui-upload">
					<button type="button" class="layui-btn layui-btn-normal" id="uploadBtn">选择图片</button>
					<div class="layui-upload-list">
						<img class="layui-upload-img" id="imgView"
							src="#(ctx)#(module.iconpath)">
						<p id="tips"></p>
					</div>
				</div>
			</div>
		</div> -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn layui-btn-normal" lay-submit=""
					lay-filter="formSub">立即提交</button>
			</div>
		</div>
	</form>
</body>

#@js?("layui")
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
	layui.use([ 'form' ], function() {
		var form = layui.form;

	});
</script>
</html>